package validation

import "unicode"

// 只允许 - _
func PunctValidator(in string) bool {
	for _, v := range in {
		if v == '-' || v == '_' {
			continue
		}
		if unicode.IsPunct(v) {
			return false
		}
	}
	return true
}
